import axios from '@/utils/request'

export function getUserChannels() {
  return axios({
    url: '/v1_0/user/channels'
  })
}
export function getChannels() {
  return axios({
    url: '/v1_0/channels'
  })
}
// 设置用户频道
export function setUserChannels(channels) {
  return axios({
    method: 'PATCH',
    url: '/v1_0/user/channels',
    data: {
      channels
    }
  })
}
export function defUserChannels(target) {
  return axios({
    url: '/v1_0/user/channels/' + target,
    method: 'DELETE'
  })
}
